package com.itbaizhan.openhis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itbaizhan.openhis.domain.User;
import com.itbaizhan.openhis.dto.UserDto;
import com.itbaizhan.openhis.vo.DataGridView;

import java.util.List;

/**
 *
 */
public interface UserService extends IService<User> {
    User queryUserByPhone(String phone);

    DataGridView listUserForPage(UserDto userDto);

    int addUser(UserDto userDto);

    int updateUser(UserDto userDto);

    int deleteUser(Long userIds);

    void resetPassword(Long[] userIds);

    List<User> queryUsersNeedScheduling(Long userId,Long deptId);
}
